home *** CD-ROM | disk | FTP | other *** search
- Path: ping.be!news
- From: Peter.Stuer@ping.be (Peter Stuer)
- Newsgroups: comp.lang.c++
- Subject: const problem & DEC C++ compiler
- Date: Fri, 19 Jan 1996 17:28:32 GMT
- Organization: PING Belgium
- Message-ID: <30ffcf45.4304009@news.ping.be>
- NNTP-Posting-Host: dialup26.antwerp.eunet.be
- X-Newsreader: Forte Agent .99c/16.141
-
- We created a template function implementation of the QuickSort
- algorithm. However, the DEC C++ compiler (AXP version 5.0-003) seems
- to generate code that causes an access violation when we compile it
- using the /optimize=(inline=all) qualifier. The template is defined as
- followed:
-
- template<class ANY> void QuickSort(ANY * const Array, const int Size)
-
- If we remove the 'const' from Array everything runs OK. Can anyone
- confirm this ? Is there a patch that fixes this ?
-